package com.gitee.paymentconsul.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * @ClassName PaymentController
 * @Description TODO
 * @Author xiongchao
 * @Date 2020/12/18 13:25
 **/
@RestController
public class PaymentController {

    @Value("${server.port}")
    private String port;

    @GetMapping("/payment/consul")
    public String paymentZk () {
        return "SpringCloud width zookeeper :" +port +"\t" + UUID.randomUUID().toString();
    }
}
